// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui';
import Axios from 'axios';
import VueAxios from 'vue-axios';
import VueCookies from 'vue-cookies'
import 'element-ui/lib/theme-chalk/index.css';

import 'jquery'
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(VueCookies);


Axios.defaults.baseURL = '/api'
Axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
Axios.defaults.headers.put['Content-Type'] = 'application/x-www-form-urlencoded';
import dateformat from 'dateformat';
Vue.prototype.$dateformat=dateformat;  //其中$xx为新命的名。
Vue.use(VueAxios, Axios);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
